<?php

namespace App\Model\Task;

use App\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

/**
 * @property integer $id
 * @property integer $create_time
 * @property integer $update_time
 * @property integer $delete_time
 * @property integer $user_id
 * @property integer $task_id
 */
class TaskReceiveDetail extends Model
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'task_receive_detail';


    protected $fillable = [
        'create_time',
        'update_time',
        'delete_time',
        'cancel_time',
        'user_id',
        'task_id',
        'value',
        'task_receive_id',
        'task_steps_rules_id'
    ];


    public function Task()
    {
        return $this->hasOne(Task::class, 'id', 'task_id');
    }

}
